﻿
@{
    Layout = Logic.ViewConfiguration.GetViewConfig().Tasks_Index_Layout;
    ViewBag.Title = "Create Task";
}

    <script src="@(Logic.Constants.CurrentUrl)/Scripts/jquery-1.4.4.min.js" type="text/javascript"></script>
    <link href="/uploadify/uploadify.css" type="text/css" rel="stylesheet" />
<script type="text/javascript" src="/uploadify/jquery-1.4.2.min.js"></script>
<script type="text/javascript" src="/uploadify/swfobject.js"></script>
<script type="text/javascript" src="/uploadify/jquery.uploadify.v2.1.4.min.js"></script>
<script type="text/javascript">
    var data = { ASPSESSID: "@Session.SessionID" };
    
    
    $(document).ready(function ()
    {
        

        $('#file_upload').uploadify({
            'uploader': '/uploadify/uploadify.swf',
            'script': '/Documents/Upload',
            'cancelImg': '/uploadify/cancel.png',
            'folder': '/uploads',
            'auto': false,
            buttonImg: "/Images/General/Button.png",
            width: 78,
            height:32,
            buttonText: "Select",
            onSelect: function (event, ID, fileObj)
            {
                alert('The file ' + fileObj.name + ' was added to the queue.');
            },
            scriptData: data
        });
    });

    function upload()
    {
        data.d = "f";
        $('#file_upload').uploadifySettings('scriptData', data);
        $('#file_upload').uploadifyUpload();
    }
</script>
   

<div id="file-uploader">    
  <input id="file_upload" name="file_upload" type="file" />
  <a href="javascript:upload()">Upload Files</a>

  <img src="/Images/General/Button.png" />
</div>


